<!-- 点击事件 -->
<template>
    <el-collapse modelValue="1">
        <el-collapse-item title="点击事件" name="1">
            <si-click-event v-model:event="widget.widgetData.eles.customFeature" />
        </el-collapse-item>
    </el-collapse>
</template>

<script>
import { defineComponent, toRefs, computed } from 'vue'
import { SiClickEvent } from '@/components/setting-pane/setting-item'
export default defineComponent({
    name: 'RowClickEvent',
    components: {
        SiClickEvent
    },
    props: {
        widget: {
            type: Object,
            default: () => ({})
        }
    },
    setup(props) {
        const { widget } = toRefs(props)
        const widgetType = computed(() => widget.value?.widgetData?.eles?.type)

        return {
            widget,
            widgetType
        }
    }
})
</script>